﻿//
// Copyright (c) 2024 BPer
//
#ifndef BPERPLAYER_SRC_BPERAUDIOPLAYAndroid_H_
#define BPERPLAYER_SRC_BPERAUDIOPLAYAndroid_H_
#include <bperaudiodev/BPerAudioPlay.h>
#if BPer_OS_ANDROID

#include "bperAudioAndroid.h"

class BPerAudioPlayAndroid:public BPerAudioPlay{
public:
	BPerAudioPlayAndroid(BPerAVInfo* avinfo,BPerSynBufferManager* streams);
	~BPerAudioPlayAndroid();
    int init();

protected:
	void startLoop();
	void stopLoop();

private:
	void closeAudio();

private:
	int32_t m_loops;
    int32_t m_isInit;
    BPerAudioAndroid* m_audioAndroid;

};
#endif

#endif /* BPERPLAYER_SRC_BPERAUDIOPLAYALSA_H_ */
